package com.cq.ssm.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.cq.ssm.po.Stuffinformation;
import com.cq.ssm.service.StuffinformationService;

@Controller
@RequestMapping("/stuffinformation")
public class StuffinformationController {

	@Autowired
	private StuffinformationService sfs;
	
	@RequestMapping("stuffinfo")
	public ModelAndView stuffinfo() throws Exception{
		ModelAndView modelAndView = new ModelAndView();
		List<Stuffinformation> stuffs = sfs.queryAllStuffinformation();
		modelAndView.addObject("stuffs", stuffs);
		modelAndView.setViewName("toolkit/labourexcel");
		return modelAndView;
	}
}
